package models

import "time"

// WX_AUTHORIZE
type WX_AUTHORIZE struct {
	AuthID       int64      `gorm:"PRIMARY_KEY;AUTO_INCREMENT;NOT NULL"`
	OpenID       string     `gorm:"NOT NULL"`
	Code         string     `gorm:"type:varchar(255); not null;"`
	AccessToken  string     `gorm:"type:varchar(255); null;"`
	ExpiresIn    float64    `gorm:"null;"`
	RefreshToken string     `gorm:"type:varchar(255); null;"`
	Scope        string     `gorm:"type:varchar(255); null;"`
	ExpiresAt    *time.Time `gorm:"null;"`
}

func (WX_AUTHORIZE) TableName() string {
	return "wx_authorize"
}
